package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberGroupGetList;
/**
 * 获取我的团购列表，分享功能同团购详情中
 * @author wliu
 * edit tse
 */
public class MemberGroupGetListResponse extends RudderResponse{
    
    private List<MemberGroupGetList> getList = new ArrayList<MemberGroupGetList>();
		
	
    /**
     * @return getList
     */	
    public List<MemberGroupGetList> getGetList() { 
	    return this.getList;
    };
	
	/**
     * @return getList
     */	
    public void setGetList(List<MemberGroupGetList> getList) { 
        this.getList = getList;
    };
    
	
        
    private static void filterFor(MemberGroupGetList member) {
        if (member.getGroupId() == null) {
            member.setGroupId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getMainImage() == null) {
            member.setMainImage("");
        }
        if (member.getEndTime() == null) {
            member.setEndTime("");
        }
        if (member.getJoinNum() == null) {
            member.setJoinNum("");
        }
    }
        
    public static void filter(MemberGroupGetListResponse member) {
        if (member.getGetList() == null) {
            member.setGetList(new ArrayList<MemberGroupGetList>());
        } else {
            for (MemberGroupGetList item : member.getGetList()) {
                filterFor(item);
            }
        }
    }
}
